<template>
	<view :style="'height:'+ height +'px;'" class="my-swiper">
		<swiper circular  class="swiper" :indicator-dots="indicatorDots" indicator-active-color="#f0f0f0" :autoplay="autoplay" :interval="interval" :duration="duration">
			<swiper-item v-for="item in list" :key="item" class="swiper-item">
				<view class="swiper-item-view uni-bg-red">
					<image :src="item.url" mode=""></image>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		props:{
			indicatorDots:{
				type:Boolean,
				default:true
			},
			autoplay:{
				type:Boolean,
				default:true
			},
			interval:{
				type:Number,
				default:5000
			},
			duration:{
				type:Number,
				default:500
			},
			height:{
				type:Number,
				default:100
			},
			list:{
				type:Array,
				default(){
					return []
				}
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.my-swiper{
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
					height: 100%;
	.swiper{
					height: 100%;
		.swiper-item{
					height: 100%;
			.swiper-item-view{
				height: 100%;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
	}
}
</style>
